#coding:utf-8
#使用for遍历列表
for i in ['java','python','c++']:
    print(i)
#使用for遍历元组
for i in ('java','python','c++'):
    print(i)
#使用for遍历字符串
str = 'happy every day'
for i in str:
    print(i)
dic = {'name':'tyy','age':30,'height':'181cm'}
#for遍历字典，其实是遍历key值
for i in dic:
    print(dic[i])